<?php
/**
 * Created by PhpStorm.
 * User: 李迪
 * Date: 2019/2/25
 * Time: 16:03
 */
namespace App\Services\Homepage;
use App\Model\Activity;
use App\Services\CommonService;
use Illuminate\Support\Facades\DB;
class ActivityService extends CommonService
{
    //查询活动列表
    public function activityList()
    {
        $list = DB::table('activity')
                ->get()
                ->toArray();
        return $list;
    }

    /**查看活动详情
     * @param $id活动id
     */
    public function find($id){
        return Activity::where('id',$id)->get();
    }

    /**
     * @param $params活动报名
     */
    public function signUp(&$params){

    }
}
